package team.seekers.catering.user.entity.dao;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.catering.common.enums.ParkEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 楼栋信息
 * </p>
 *
 * @author hbc
 * @since 2021-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Building对象", description="楼栋信息")
public class Building implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "管理员id")
    private String userId;

    @ApiModelProperty(value = "楼栋所在园区")
    @JsonValue
    private ParkEnum park;

    @ApiModelProperty(value = "楼栋号")
    private Integer building;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    private Integer isDelete;


}
